package group32.server;

import group32.client.FriendBrowseService;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

@SuppressWarnings("serial")
public class FriendBrowseImpl extends RemoteServiceServlet implements FriendBrowseService{

	@Override
	public String getPersonAndNeighbours(int person,String type) {
		
		  DBQuery db = new DBQuery();
	        String userData = db.getPersonAndNeighbors(person,type);
	        if(!userData.isEmpty())
	        	return userData+"</hasFriend></user>";
	        else
	        	return "<user></user>";
	        
	}
}
